package ycl.common.exception;

import lombok.Getter;
import ycl.common.enums.ApiResultEnum;

/**
 * 自定义异常
 *
 * @author ycl
 * @date 2022/6/26 0026 22:50:14
 */
@Getter
public class CustomException extends RuntimeException {
	private static final long serialVersionUID = -549611288138443327L;

	private final int code;

	public CustomException(ApiResultEnum enum2) {
		super(enum2.message);
		this.code = enum2.code;
	}


}
